from pydantic import BaseModel


class IScheduleCreate(BaseModel):
    id_task: int
    id_user: int
    id_sub_task: int
    id_tolmut: int
    status_task: int
    date: int
    id_address_list: int

    class Config:
        from_attributes = True

class IScheduleRead(IScheduleCreate):
    id: int

class ISchedulePut(BaseModel):
    id_task: int | None
    id_user: int | None
    id_sub_task: int | None
    id_tolmut: int | None
    status_task: int | None
    date: int | None
    id_address_list: int | None

    class Config:
        from_attributes = True
